home *** CD-ROM | disk | FTP | other *** search
/ PC User 2002 April / Disc 2 / PCUSER0402D2.iso / software / utils / files / wincron.exe / data1.cab / Sample_Scripts / delay_start_test.tg < prev    next >
Encoding:
Text File  |  2001-10-20  |  882 b   |  37 lines

  1. ## delay_start
  2. # test of the delayed start
  3.  
  4. # you should see this
  5. {
  6.     -name delay_start_01
  7.     -start    -delay 0 0 0 0
  8.     -stop    -delay 0 0 0 0 
  9.     -action -print you SHOULD see this
  10. }
  11.  
  12. # you should NOT see this because stop will execute before start
  13. {
  14.     -name delay_start_02
  15.     -start    -delay 0 0 0 5 
  16.     -stop    -delay 0 0 0 0 
  17.     -action -print you should NOT see this
  18. }
  19.  
  20. # you MAY see this even though the start-time > stop-time. This is because the one-second 
  21. #    lead-time may not be sufficient if the start-time + delay has expired by the time 
  22. #    we get around to processing this job.
  23. {
  24.     -name delay_start_03
  25.     -start    -delay 0 0 0 1 
  26.     -stop    -delay 0 0 0 0 
  27.     -action -print you MAY see this
  28. }
  29.  
  30. # you should see this because start will execute before stop
  31. {
  32.     -name delay_start_04
  33.     -start    -delay 0 0 0 0
  34.     -stop    -delay 0 0 0 5 
  35.     -action -print you SHOULD see this
  36. }
  37.